package net.goutalk.glcs.module.workflow.service;

import com.github.yulichang.base.MPJBaseService;
import net.goutalk.glcs.module.workflow.dto.HistoryChangeDto;
import net.goutalk.glcs.module.workflow.entity.WorkflowSchemaHistory;
import net.goutalk.glcs.module.workflow.vo.ProcessChangeVo;

import java.util.List;

/**
 * <p>
 * 流程模板历史记录表 服务类
 * </p>
 *
 * @author tanyujie
 * @since 2022-11-16
 */
public interface IWorkflowSchemaHistoryService extends MPJBaseService<WorkflowSchemaHistory> {

    /**
     * 设置为当前版本
     * @param dto
     * @return
     */
    List<ProcessChangeVo> change(HistoryChangeDto dto);

    /**
     * 流程变更
     * @param dto
     * @return
     */
    List<ProcessChangeVo> processChanges(HistoryChangeDto dto);

}
